-----------------------------------------
-- ID: 6063
-- Item: Fruit Parfait
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP % 5 Cap 50
-- Intelligence 3
-- Mind 2
-- Charisma 1
-- Strength -3
-- MAB 6
-----------------------------------------

require("scripts/globals/status");

-----------------------------------------
-- OnItemCheck
-----------------------------------------

function onItemCheck(target)
result = 0;
	if (target:hasStatusEffect(EFFECT_FOOD)) then
		result = 246;
	end
return result;
end;

-----------------------------------------
-- OnItemUse
-----------------------------------------

function onItemUse(target)
    target:addStatusEffect(EFFECT_FOOD,0,0,10800,6063);
end;

-----------------------------------------
-- onEffectGain Action
-----------------------------------------

function onEffectGain(target,effect)
    target:addMod(MOD_FOOD_MPP, 5);
    target:addMod(MOD_FOOD_MP_CAP, 50);
    target:addMod(MOD_INT, 3);
    target:addMod(MOD_MND, 2);
    target:addMod(MOD_CHR, 1);
    target:addMod(MOD_STR, -3);
    target:addMod(MOD_MATT, 6);
end;

-----------------------------------------
-- onEffectLose Action
-----------------------------------------

function onEffectLose(target,effect)
    target:delMod(MOD_FOOD_MPP, 5);
    target:delMod(MOD_FOOD_MP_CAP, 50);
    target:delMod(MOD_INT, 3);
    target:delMod(MOD_MND, 2);
    target:delMod(MOD_CHR, 1);
    target:delMod(MOD_STR, -3);
    target:delMod(MOD_MATT, 6);
end;